package com.emily.test.service.impl;

import com.emily.test.mapper.ShardingGroupMapper;
import com.emily.test.model.ShardingGroup;
import com.emily.test.service.ShardingGroupService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service(value = "shardingGroupAgent")
public class ShardingGroupServiceImpl implements ShardingGroupService {

    @Resource
    private ShardingGroupMapper shardingGroupMapper;

    public ShardingGroup selectShardingGroupById(int id){
        ShardingGroup shardingGroup = shardingGroupMapper.selectByPrimaryKey(id);
        return shardingGroup;
    }
}
